<Form ref="loginForm" :model="form" :rules="rules">
  <FormItem prop="userName">
    <Input v-model="form.userName" placeholder="请输入用户名">
    <span slot="prepend">
      <Icon :size="16" type="person"></Icon>
    </span>
    </Input>
  </FormItem>
  <FormItem prop="password">
    <Input type="password" v-model="form.password" placeholder="请输入密码">
    <span slot="prepend">
      <Icon :size="14" type="locked"></Icon>
    </span>
    </Input>
  </FormItem>
  <FormItem>
    <Button @click="handleSubmit" type="primary" long>登录</Button>
  </FormItem>
</Form>